package cn.easybuy.service.impl;

import java.util.List;

import cn.easybuy.dao.NewsDao;
import cn.easybuy.dao.impl.NewsDaoImpl;
import cn.easybuy.entity.News;
import cn.easybuy.service.NewsService;

public class NewsServiceImpl implements NewsService{
	NewsDao newsDao= new NewsDaoImpl();
	@Override
	public List<News> getNews() {
		return newsDao.getNews();
	}
	@Override
	public List<News> getNewsPageList(int currNo, int pageSize) {
		return newsDao.getNewsPageList(currNo, pageSize);
	}
	@Override
	public int getTotalCount() {
		return newsDao.getTotalCount();
	}
	@Override
	public List<News> getNewsById(int id) {
		return newsDao.getNewsById(id);
	}

}
